﻿using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using WalkingTec.Mvvm.Core;
using System.Text.Json.Serialization;
using TyMES.Model;


namespace TyMES.Model.Record
{
    [Table("T_EnergyConsumptionRecord")]
    public class EnergyConsumptionRecord : BasePoco
    {
        [Display(Name = "上传时间")]
        public DateTime UploadTime { get; set; }
        [Display(Name = "工位号")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string stationCode { get; set; }//站点号
        [Display(Name = "设备编号")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string machineCode { get; set; }
        [Display(Name = "压力")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string Airpressure { get; set; }//压力
        [Display(Name = "累计流量")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string Flow { get; set; }//累计流量
        [Display(Name = "累计电能")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string Energy { get; set; }//累计电能
        [Display(Name = "A相电压")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string VoltageA { get; set; }//A相电压
        [Display(Name = "B相电压")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string VoltageB { get; set; }//B相电压
        [Display(Name = "C相电压")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string VoltageC { get; set; }//C相电压
        [Display(Name = "A相电流")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string ElectricityA { get; set; }//A相电流
        [Display(Name = "B相电流")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string ElectricityB { get; set; }//B相电流
        [Display(Name = "C相电流")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string ElectricityC { get; set; }//C相电流
        [Display(Name = "采集时间")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string Time { get; set; }//时间
        [Display(Name = "单位")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string Unit {  get; set; }//单位
        [Display(Name = "采集时间间隔")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string acquisitionInterval {  get; set; }//采集时间间隔
        [Display(Name = "设备状态")]
        [StringLength(100, ErrorMessage = "Validate.{0}stringmax{1}")]
        public string machineStatus {  get; set; }//设备状态
        [Display(Name = "上传标识")]
        public bool uploadflag {  get; set; }
    }
}
